package com.example.qguserconsumer.fegin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;
@FeignClient(name = "qguserprovider",fallback = UserFeginImpl.class )
public interface UserFegin {
    @RequestMapping("/login")
    public Map login(@RequestParam Map map);

    @RequestMapping("/getByPhone")
    public Map getByPhone(@RequestParam("phone") String phone);
}
